Release 10.1A: OpenEdge Development:
ADM Reference
calltable.p
The
calltable.pprocedure allows invocation of a call by passing in a temp-table that contains the parameter values for each parameter. The temp-table must be in one of the forms supported in thecalltables.ifile located in thesrc/adm2/directory, or from the signature of the procedure or function being invoked.For more information, see the "Temp-table include files" section and the "Temp-table types" section.
The code in Example A–3 illustrates using
calltable.pto invoke a call.
After the call completes, the return values are available in output parameter records. In Example A–3, records 2 and 3 contain the output parameters from the call.
In addition, two extra records are appended to the table. The field
cParamNameon these fields is set tocallReturnValueanderrReturnValue. ThecallReturnValuefield contains the value of the return value from the function or procedures and theerrReturnValuefield contains a value if an error condition occurs.The code in Example A–4 illustrates using
calltable.pwith additional requirements for mappings. The difference between Example A–3 and Example A–4 is that the API is now forced to instantiatecalls.pand obtain the signature toemptyProcParamto complete the mapping of values fromttCallParamto the values in the procedure. This is more expensive in terms of performance, but does however provide some options for specifying parameters.As in Example A–3, the code in Example A–4 appends two extra records to the table after execution of the call. The field
cParamNameon these fields is set tocallReturnValueanderrReturnValue. ThecallReturnValuefield contains the value of the return value from the function or procedure, and theerrReturnValuefield contains a value if an error condition occurs.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |